Better handling of strptime being in C, but used by C++.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 6 Feb 2013 22:48:27 +0000 (22:48 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 6 Feb 2013 22:48:27 +0000 (22:48 +0000)
gpsbabel/strptime.h

index 62a0c61dfd218fe76ab1459e5b97d14db573f2b3..3d37bfda7bd51d810c6a86530fdc83e8cf6c0e43 100644 (file)
 /*
  * Version of "strptime()", for the benefit of OSes that don't have it.
  */
+#ifdef __cplusplus
+extern "C" {
+#endif
 extern char* strptime(const char*, const char*, struct tm*);
-
+#ifdef __cplusplus
+}
+#endif
 #endif